<script>
  var p = "{$p}";//定义页码
  var stu_name = "{$stu_name}";
  var class_id = "{$class_id}";
</script>
<php>if($listData){</php>
<table class="table table_list  t7_3">
  <foreach name="listData" item="data">
    <tr>
      <td>{$data.stu_name}</td>
      <td>
        <if condition="$data['gender'] eq 1">男
          <else />女
        </if>
      </td>
      <td>{$data.birthday}</td>
      <td>
        <if condition="$data['birth_condition'] eq 1">顺产
          <else />剖腹产
        </if>
      </td>
      <td>{$data.birth_weight}/kg</td>
      <td>
        <!-- <a href="{:U('public/Index/UpdateStudent',array('id'=>$data['stu_id']))}">修改</a> -->
        <a href="javascript:EditStu({$data.stu_id})">修改</a>
        <a href="javascript:DeleteStu({$data.stu_id})">删除</a>
        <a href="javascript:updateStuClass({$data.stu_id})">调档</a>
      </td>
    </tr>
  </foreach>
</table>
<php>}else{</php>
<span>暂无学生</span>
<php>}</php>